﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ITSP.SharePoint.CacheRefresh.Interfaces
{
    /// <summary>
    /// An interface which can be used to describe when a object can be cached.
    /// </summary>
    public interface ICacheable
    {
        /// <summary>
        /// Is the Object Cachable?
        /// </summary>
        /// <returns></returns>
        bool IsCacheable();

        /// <summary>
        /// How long should the object be cached?
        /// </summary>
        TimeSpan CacheLifeTime
        {
            get;
        }
    }
}
